package sys

import (
	v1 "ginweb-admin/api/v1"
	"github.com/gin-gonic/gin"
)

type SysUserRoleRouter struct{}

func (router *SysUserRoleRouter) InitSysUserRoleRouter(Router *gin.RouterGroup) {
	// 获取接口的api方法
	sysUserRoleApi := v1.WebApiGroupApp.SysUserRole.SysUserRoleApi
	// 创建路由组
	routerGroup := Router.Group("/sys/user/role")
	{
		// 用户授权角色
		routerGroup.POST("/save", sysUserRoleApi.SaveSysUserRole)
		// 查询用户授权的角色
		routerGroup.POST("/findUserRole", sysUserRoleApi.FindUserRole)
	}
}
